package com.gx.dao;

import com.gx.entity.SuccessKilled;
import org.apache.ibatis.annotations.Param;

/**
 * Created by gx on 2017/2/5.
 */
public interface SuccessKilledDao {

    /**
     * 插入购买明细  ，可过滤重复
     * @param seckillId
     * @param userphone
     * @return  插入函数 ，返回0插入失败
     */
    int insertSuccessKilled(@Param("seckillId") long seckillId,@Param("userPhone") long userphone);

    /**
     * 根据Id查询SuccessKilled并携带秒杀产品对象实体
     * @param seckillId
     * @return
     */
    SuccessKilled queryByWithSeckill(@Param("seckillId")long  seckillId,@Param("userPhone")long userPhone );
}
